<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>alert|confirm|prompt</title>
</head>
<body>
    <script type="text/javascript">
        // window.alert('mjj');
        // var a = window.confirm('你确定要离开网站');
        // console.log(a);
        var name = window.prompt('请输入你早晨吃了什么?');
        console.log(name);
    </script>

</body>
</html>